//
//  CustmAlertView.h
//  JUSQ
//
//  Created by admin on 16/3/25.
//  Copyright (c) 2016年 haoniu. All rights reserved.
//

#import <UIKit/UIKit.h>


@class CustmAlertView;

typedef enum {
    ENUM_CustmAlertViewLabel = 0,//文本
    ENUM_CustmAlertViewText = 1//输入框
} ENUM_CustmAlertView;

@protocol CustmAlertViewDelegate <NSObject>

@optional
-(void)CustmAlertView:(CustmAlertView *)alertView withButton:(NSInteger)buttonIndex withText:(NSString *)textContent;

@end

@interface CustmAlertView : UIView<UITextFieldDelegate>

+(instancetype) shareInstance;

+(instancetype) ShowContentView:(NSString *)title withDetail:(NSString *)detail withDelegate:(id<CustmAlertViewDelegate>)delegate withShowType:(ENUM_CustmAlertView)show;

-(void)showByAnimaDefault;

-(void)hideByAnimaDefault;

@property BOOL isShown;
//@property BOOL startMoving;

@property (nonatomic,retain) UITextField * tv;
@property (nonatomic,retain) UILabel * label;
@property (nonatomic,retain) NSMutableString * title;
@property (nonatomic,retain) NSMutableString * detail;
@property (nonatomic,retain) UIView * contentView;
@property ENUM_CustmAlertView showType;


@property (nonatomic,retain) id<CustmAlertViewDelegate> custmAlertViewDelegate;

@end
